<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/4/26
  Time: 22:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <title>ueditor demo</title>
</head>

<body>
<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain">
        这里写你的初始化内容
    </script>
<!-- 配置文件 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/res/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/res/ueditor.all.min.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    //ueditor配置
    var ue = UE.getEditor('container',{toolbars: [
        ['undo', 'redo'],
        ['bold', 'italic', 'underline',   'formatmatch', 'autotypeset', 'fontfamily',
            'fontsize', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc']
    ],
        elementPathEnabled:false,
        autoHeightEnabled:false,
        initialFrameWidth:500,
        initialFrameHeight:300,
        enableAutoSave:false
    });
</script>
</body>

</html>
